#!/usr/bin/env python
# -*- coding:utf-8 -*-
import select
import threading
import sys

while True:
    # try :
    readable, writeable, error = select.select([sys.stdin,],[],[],1)    #sys.stdin是连接句柄，sk
    # except select.error,e:
    #     print e
    if sys.stdin in readable:   #null不成立
        print 'select get stdin',sys.stdin.readline()